﻿@page "/datagrid-conditional-template"

<RadzenText TextStyle="TextStyle.H2" TagName="TagName.H1" class="rz-pt-8">
    DataGrid conditional styles and templates
</RadzenText>
<RadzenText TextStyle="TextStyle.Subtitle1" TagName="TagName.P" class="rz-pb-4">
    This page demonstrates <b>DataGrid</b> with conditional rows and cells template/styles.
</RadzenText>

<RadzenText TextStyle="TextStyle.Subtitle2" TagName="TagName.P" class="rz-pb-4">
    In this demo <code>RowRender</code> makes rows bold when Quantity > 20, <code>CellRender</code> colors <strong>Quantity</strong> cells green and adds <code>rowspan</code>/<code>colspan</code> attributes, and <strong>Quantity</strong> template displays values in contrast color conditionally.
</RadzenText>

<RadzenExample ComponentName="DataGrid" Example="DataGridConditionalTemplate">
    <DataGridConditionalTemplate />
</RadzenExample>